//懒得写脚本,直接复制这边基础结构
import React, {Component} from 'react';
import NavigationBar from '../../Common/NavigationBar/NavigationBar.jsx'

//import Using ES6 syntax
import WeUI from 'react-weui';


//import styles
import 'weui';
import 'react-weui/build/dist/react-weui.css';
import {CSS} from '../styles/CreateTeamStyle.css';
const {Button, ButtonArea} = WeUI;
export default class CreateTeamSuccess extends Component {
    constructor(props) {
        super(props);
        this.LeftClick = this.LeftClick.bind(this);
        this.BookingStation = this.BookingStation.bind(this);
    }

    componentWillMount() {

    }

    LeftClick() {
        if (this.props.location.query.from == "edit") {
            location.hash = '/TeamListEdit';
            return;
        } else {
            location.hash = '/TeamList';
            return;
        }
    }

    BookingStation() {
        window.location.hash = "/MeetingRoom"
    }

    render() {
        return (
            <div>
                <NavigationBar Title="创建企业" LeftBar="true" LeftTitle="返回"
                               LeftIconSrc="/iot-meeting/assets/images/common/nav_back_icon.png" LeftClick={this.LeftClick}/>
                <div id="successIconDiv">
                    <img id="successImage" src="/iot-meeting/assets/images/Yes_blue.png"/>
                </div>
                <div id="SuccessPromptDiv">企业创建成功</div>
                <div id="ThankJoinDiv">感谢您的加入</div>
                <div id="AddStationDivStyle">
                    <ButtonArea direction="horizontal">
                        <Button type="default" id="AddStationButtonStyle" onClick={this.BookingStation}>立即预定会议室</Button>
                    </ButtonArea>
                </div>
            </div>
        )
    }
}
//属性默认值
CreateTeamSuccess.defaultProps = {};
//属性
CreateTeamSuccess.propTypes = {};